package org.grow.auth.controller;

import org.grow.auth.dao.DictMapper;
import org.grow.auth.domain.Dict;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: xwg
 * @CreateDate: 2023/9/25
 */

@RestController
@RequestMapping("/dict")
public class DictController {

    @Autowired
    private DictMapper dictMapper;

    @GetMapping("/findAll")
    public List<Dict> findAll() {
        return dictMapper.selectAll();
    }
}
